package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.UserIntegralDao;
import com.platform.entity.UserIntegralEntity;
import com.platform.service.UserIntegralService;

/**
 * Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-09-28 09:54:35
 */
@Service("userIntegralService")
public class UserIntegralServiceImpl implements UserIntegralService {
    @Autowired
    private UserIntegralDao userIntegralDao;

    @Override
    public UserIntegralEntity queryObject(Integer id) {
        return userIntegralDao.queryObject(id);
    }

    @Override
    public List<UserIntegralEntity> queryList(Map<String, Object> map) {
        return userIntegralDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userIntegralDao.queryTotal(map);
    }

    @Override
    public int save(UserIntegralEntity userIntegral) {
        return userIntegralDao.save(userIntegral);
    }

    @Override
    public int update(UserIntegralEntity userIntegral) {
        return userIntegralDao.update(userIntegral);
    }

    @Override
    public int delete(Integer id) {
        return userIntegralDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return userIntegralDao.deleteBatch(ids);
    }
}
